package com.aidex.generator.service;

import java.util.List;
import java.util.Map;

import com.aidex.common.core.domain.entity.SysMenu;
import com.aidex.common.core.service.BasicService;
import com.aidex.generator.domain.GenTable;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;

public interface GenTableService extends BasicService<GenTable> {

    void importGenTable(List<GenTable> tableList);

    Map<String, String> previewCode(String tableId);

    byte[] downloadCode(String tableName);

    String generatorCode(String tableName);

    void synchDb(String tableName);

    void addMenu(String tableName);

    byte[] downloadCode(String[] tableNames);

    void validateEdit(GenTable genTable);

    List<GenTable> selecDbtList(QueryWrapper<GenTable> queryWrapper);

    SysMenu selectSysMenuById(String id);

    int findSysMenuMaxSort(SysMenu menu);
}
